package org.glut.backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.glut.backend.domain.StreetFood;
import org.glut.backend.service.ISoldSeatService;
import org.glut.backend.domain.SoldSeat;
import org.glut.backend.mapper.SoldSeatMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 已售座位表 服务实现类
 *
 * @author gluglu2
 * @since 2025-08-01 17:43
 */
@Service
public class SoldSeatServiceImpl extends ServiceImpl<SoldSeatMapper, SoldSeat> implements ISoldSeatService {

    @Override
    public List<SoldSeat> getScheduling(Integer schedulingId) {
        LambdaQueryWrapper<SoldSeat> soldSeatLambdaQueryWrapper = new LambdaQueryWrapper<>();
        soldSeatLambdaQueryWrapper.eq(SoldSeat::getMovieSchedulingId,schedulingId);
        List<SoldSeat> soldSeats = baseMapper.selectList(soldSeatLambdaQueryWrapper);
        return soldSeats;
    }
}